(function() {
	// window.config.socketUrl = 'http://'+localStorage["user_ip"]+':6767';
	window.config.socketUrl = 'http://127.0.0.1:6767';
	if (localStorage.light_ip) {
		window.config.lightUrl ='http://'+localStorage["light_ip"]+'/rfoutlet/toggle.php';
		console.log(window.config.lightUrl);
	};
	window.config.ondebug = function(key) {
	var list = {
		'noPreload':    false,
		'noEffectHome': true,
		'noCamera':     false,
		'noSocket':     true
	};
	if(key == 'noSocket' || key == 'noCamera') {
		return list[key];
	}
	return !!(window.config.debug && list[key]);
};
})();